package com.qsbc.pygram.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qsbc.pygram.entity.Checkpoint;
import com.qsbc.pygram.entity.CheckpointContent;
import com.qsbc.pygram.mapper.CheckpointContentMapper;
import com.qsbc.pygram.mapper.CheckpointMapper;
import com.qsbc.pygram.service.CheckpointContentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author baomidou
 * @since 2023-02-13
 */
@Service
public class CheckpointContentServiceImpl extends ServiceImpl<CheckpointContentMapper, CheckpointContent> implements CheckpointContentService {

    @Resource
    private CheckpointContentMapper checkpointContentMapper;

    @Override
    public Page<CheckpointContent> findPage(Page<CheckpointContent> page, Integer  checkpointId, String contentType) {
        return checkpointContentMapper.findPage(page, checkpointId, contentType);
    }


    @Override

    public List<Integer> findByid(CheckpointContent checkpointContent) {
        return checkpointContentMapper.findByid(checkpointContent);
    }
}
